﻿<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport"
          content="width=device-width, initial-scale=1, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！-->
    <title>学生惠后台管理系统</title>
    <link rel="stylesheet" href="/App/Admin/public/css/bootstrap.min.css"/>
    <link rel="stylesheet" href="/App/Admin/public/css/style.css"/>
</head>
<body>
<div class="mainBody">
     <include file="Public:left"/>
    <div class="main">
        <include file="Public:top"/>

        <div class="subNav">
            <span class="text"><i class="iconFont">&#xe600;</i>商家管理 - 编辑</span>
        </div>

        <div class="indexBox">
            <div class="con-det">
                <div class="row">
                    <div class="col-md-12">
                        <form id="commentForm">
                            <table class="formTable editForm">
                                <tr>
                                    <td class="noBor" valign="top">商铺号</td>
                                    <td class="noBor" valign="top"><input type="text" class="inp form-control" readonly value="{$dataInfo.id}"></td>
                                    <td class="noBor"></td>
                                    <td class="noBor" valign="top">商铺名</td>
                                    <td class="noBor" valign="top"><input type="text" class="inp form-control" readonly value="{$dataInfo.shop_name}"></td>
                                </tr>
                                <tr>
                                    <td valign="top">商家类型</td>
                                    <td valign="top"><input type="text" class="inp form-control" readonly value="{$dataInfo.class_name}"></td>
                                    <td></td>
                                    <td valign="top">商家分类</td>
                                    <td valign="top"><input type="text" class="inp form-control" readonly value="{$dataInfo.class_name}"></td> 
                                </tr>
                                <tr>
                                    <td valign="top">店主姓名</td>
                                    <td valign="top"><input type="text" class="inp form-control" readonly value="{$dataInfo.keeper}"></td>
                                    <td></td>
                                    <td valign="top">手机号</td>
                                    <td valign="top"><input type="text" class="inp form-control" readonly value="{$dataInfo.phone}"></td>
                                </tr>
                                <tr>
                                    <td valign="top">身份证号</td>
                                    <td valign="top"><input type="text" class="inp form-control" readonly value="{$dataInfo.idcard}"></td>
                                    <td></td>
                                    <td valign="top">银行卡</td>
                                    <td valign="top"><input type="text" class="inp form-control" readonly value="{$dataInfo.bankcard}" ></td>
                                </tr>
                                <tr>
                                    <td valign="top">开户行</td>
                                    <td valign="top"><input type="text" class="inp form-control" readonly value="{$dataInfo.bank}"></td>
                                    <td></td>
                                    <td valign="top">开户网点</td>
                                    <td valign="top"><input type="text" class="inp form-control" readonly value="{$dataInfo.bank_branch}" ></td>
                                </tr>
                                <tr>
                                    <td valign="top">所在省</td>
                                    <td valign="top"><input type="text" class="inp form-control" readonly value="{$dataInfo.provin}"></td>
                                    <td></td>
                                    <td valign="top">所在市</td>
                                    <td valign="top"><input type="text" class="inp form-control" readonly value="{$dataInfo.city}"></td>
                                </tr>
                                <tr>
                                    <td valign="top">大学</td>
                                    <td valign="top"><input type="text" class="inp form-control" readonly value="{$dataInfo.school}" ></td>
                                    <td></td>
                                    <td valign="top">详细地址</td>
                                    <td valign="top"><input type="text" class="inp form-control" readonly value="{$dataInfo.address}" ></td>
                                </tr>
                                <tr>
                                    <td valign="top">店内电话</td>
                                    <td valign="top"><input type="text" class="inp form-control" readonly  value="{$dataInfo.telephone}"></td>
                                    <td></td>
                                    <td valign="top">营业时间</td>
                                    <td valign="top"><input type="text" class="inp form-control" readonly value="{$dataInfo.start_time}-{$dataInfo.end_time}" ></td>
                                </tr>
                                <tr>
                                    <td valign="top">注册时间</td>
                                    <td valign="top"><input type="text" class="inp form-control" readonly value="{$dataInfo.add_time|date='Y-m-d',###}" ></td>
                                    <td></td>
                                    <td valign="top">扣点</td>
                                    <td valign="top"><input type="text" class="inp form-control" name="kd" value="{$dataInfo.point}" id='kd' ></td>
                                </tr>
                                <tr>
                                    <td valign="top">营业执照</td>
                                    <td colspan="4"><img src="/Uploads/lien/{$dataInfo.liencepic}" width="500"></td>
                                </tr>
                                <tr>
                                    <td valign="top">店铺二维码</td>
                                    <td colspan="4"><img src="/Uploads/lien/{$dataInfo.dimension_code}" width="500"></td>
                                </tr>



                                <tr>
                                    <td class="textAliRi" colspan="5">
                                        <button class="btn btn-primary blue" id="btn-cun"  cid='{$dataInfo.id}' type="submit">保存</button>
                                        
                                    
                                        <a href="{:U('ShopMange/index')}" class="btn btn-default" type="button">返回</a>
                                    </td>
                                </tr>
                            </table>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<div class="modal fade popupShow" tabindex="-1" role="dialog">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title">提示：</h4>
            </div>
            <div class="modal-body">
                <p>请确认是否进行审核！</p>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                <button type="button" class="btn btn-primary blue">确认</button>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript" src="/App/Admin/public/js/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="/App/Admin/public/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/App/Admin/public/js/public.js"></script>




<script>
    $("#btn-cun").click(function(){
      
        var cid=$(this).attr('cid');
        var kd=$("#kd").val();
		
	  $.post('{:U('ShopMange/savePoint')}',{cid:cid,kd:kd},function(data){
            if(data==100){
             
               location.href='{:U("shopMange/index")}';
            }else{
                alert('保存失败');
            }
        });
    })
    
</script>

</body>
</html>








